<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/jirui/bigdata/big_data_production.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/jirui/bigdata/big_data_production.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'big_data_production_id',
                footer: "Foots",
                cnName: '大数据生产表',
                name: 'bigdata/big_data_production',
                url: "/big_data_production/",
                sortName: "big_data_production_id"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'big_data_production_id',title:'mes生产表id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'vin',title:'车辆VIN',type:'string',width:220,align:'left',sort:true},
                       {field:'welding_online_time',title:'焊装上线时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'welding_online_operator',title:'焊装上线操作人',type:'string',width:220,align:'left'},
                       {field:'welding_downline_time',title:'焊装下线时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'welding_downline_operator',title:'焊装下线操作人',type:'string',width:220,align:'left'},
                       {field:'coating_online_time',title:'涂装上线时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'coating_online_operator',title:'涂装上线操作人',type:'string',width:220,align:'left'},
                       {field:'coating_downline_time',title:'涂装下线时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'coating_downline_operator',title:'涂装下线操作人',type:'string',width:220,align:'left'},
                       {field:'finaling_online_time',title:'总装上线时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'finaling_online_operator',title:'总装上线操作人',type:'string',width:220,align:'left'},
                       {field:'finaling_downline_time',title:'总装下线时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'finaling_downline_operator',title:'总装下线操作人',type:'string',width:220,align:'left'},
                       {field:'in_stock_date',title:'入库时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'in_stock_operator',title:'入库操作人',type:'string',width:220,align:'left'},
                       {field:'welding_product_plant_name',title:'焊装生产车间名称',type:'string',width:220,align:'left'},
                       {field:'welding_product_name',title:'焊装线名称',type:'string',width:220,align:'left'},
                       {field:'coating_product_plant_name',title:'涂装生产车间名称',type:'string',width:220,align:'left'},
                       {field:'coating_product_line_name',title:'涂装线名称',type:'string',width:220,align:'left'},
                       {field:'finaling_product_plant_name',title:'总装生产车间名称',type:'string',width:220,align:'left'},
                       {field:'finaling_product_line_name',title:'总装线名称',type:'string',width:220,align:'left'},
                       {field:'body_code',title:'车身编码',type:'string',width:220,align:'left'},
                       {field:'welding_body_code',title:'焊装车身编码',type:'string',width:220,align:'left'},
                       {field:'coating_body_code',title:'涂装车身编码',type:'string',width:220,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'status',title:'推送状态，0:未推送，1:已推送',type:'int',width:110,require:true,align:'left'},
                       {field:'produceorder',title:'生产订单号',type:'string',width:220,align:'left'},
                       {field:'qc_date',title:'合格证打印日期',type:'datetime',width:150,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
